package com.yy.xshell.utils;

import org.apache.commons.lang.StringUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author wxy
 * @version 1.0
 * @date 2024/8/20 14:17
 */
public class CommandUtil {

    private static final String pattern_t = "\\\\t";

    public static String processTab(String command){

        Pattern pattern = Pattern.compile(pattern_t);
        Matcher matcher = pattern.matcher(command);
        if(matcher.find()){
            command = command.replaceAll(pattern_t, "\t");
        }
        return command;
    }
}
